<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>par_ui: /home/wouter/ros_packages/thp-pj2-08/par_ui/include/par_ui/par_config.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>

<table border="0">
<tr><td valign="top" style="border-right: 1px solid #333; padding-right: 10px;" >
<p>
Project: <a href="http://ros.org/wiki/par_ui">par_ui</a>
</p>
<p>
License: BSD
</p>
<p>
Dependencies: 
<ul>
  <li>std_msgs</li>
  <li>roscpp</li>
  <li>par_kinematics</li>
  <li>par_trajectory_planning</li>
  <li>tinyxml</li>
</ul>
</p>
<p>
Used by:
None<br />
</p>
<p>
<a href="../../index.html">All Packages</a>
</p>

</div>
</td><td valign="top" style="padding-left: 10px;" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/wouter/ros_packages/thp-pj2-08/par_ui/include/par_ui/par_config.h</h1>  </div>
</div>
<div class="contents">
<a href="par__config_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;ros/ros.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;par_kinematics/coord.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;par_trajectory_planning/commands.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;par_trajectory_planning/config.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;tinyxml/tinyxml.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _CONFIG_UI_H_</span>
<a name="l00012"></a><a class="code" href="par__config_8h.html#ab8c57b7f4eab0e2e766051fc284c74e3">00012</a> <span class="preprocessor"></span><span class="preprocessor">#define _CONFIG_UI_H_</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a><a class="code" href="classConfig.html">00014</a> <span class="keyword">class </span><a class="code" href="classConfig.html">Config</a>
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016     <span class="keyword">public</span>:
<a name="l00025"></a>00025         <a class="code" href="classConfig.html#a04b1ec1aebdcc4bc41865589cc4d9a6b" title="Constructor.">Config</a>(ros::ServiceClient&amp; <a class="code" href="classConfig.html#a4ce06e0d6eed2f4f78ef37e02657be44">coord_client</a>, par_kinematics::coord&amp; <a class="code" href="classConfig.html#a6016978f0cdcea94b3cdc262d0b19be9">coords</a>,
<a name="l00026"></a>00026                           par_trajectory_planning::commands&amp; <a class="code" href="classConfig.html#a80565c8992f0daefecdfaf68f4b54ed8">cmd</a>, ros::Publisher&amp; <a class="code" href="classConfig.html#abae604229130930920b20f7d3d3275f3">chatter_pub_cmd</a>);
<a name="l00030"></a>00030         <span class="keywordtype">void</span> <a class="code" href="classConfig.html#a4e9f99ceaf254f82b14e845de037fc5f" title="Function for reading XML configuration file.">read</a>(<span class="keyword">const</span> std::string&amp; file);
<a name="l00031"></a>00031     <span class="keyword">private</span>:
<a name="l00035"></a>00035         <span class="keywordtype">void</span> <a class="code" href="classConfig.html#ad4f99d7b741d557b0c33922c35d4ac7e" title="Function for parsing motor parameters.">parse_xml_init</a>();
<a name="l00039"></a>00039         <span class="keywordtype">void</span> <a class="code" href="classConfig.html#af71847173b3109bb53131480cb4f87a1" title="Function for parsing PTP parameters.">parse_xml_ptp</a>();
<a name="l00048"></a>00048         <span class="keywordtype">void</span> <a class="code" href="classConfig.html#a28074debfd22ac091b23b0b409cc7b64" title="Function for parsing a PTP motion row.">parse_xml_ptp_row</a>(TiXmlNode* node, <span class="keywordtype">double</span>&amp; X, <span class="keywordtype">double</span>&amp; Y, <span class="keywordtype">double</span>&amp; Z, uint16_t&amp; operating_mode);
<a name="l00049"></a>00049         
<a name="l00050"></a><a class="code" href="classConfig.html#acfcf2db554ec86f6e8b11e63181419e8">00050</a>         TiXmlElement* <a class="code" href="classConfig.html#acfcf2db554ec86f6e8b11e63181419e8">config</a>;
<a name="l00051"></a><a class="code" href="classConfig.html#a4ce06e0d6eed2f4f78ef37e02657be44">00051</a>         ros::ServiceClient coord_client;
<a name="l00052"></a><a class="code" href="classConfig.html#a6016978f0cdcea94b3cdc262d0b19be9">00052</a>         par_kinematics::coord coords;
<a name="l00053"></a><a class="code" href="classConfig.html#a80565c8992f0daefecdfaf68f4b54ed8">00053</a>         par_trajectory_planning::commands cmd;
<a name="l00054"></a><a class="code" href="classConfig.html#abae604229130930920b20f7d3d3275f3">00054</a>         ros::Publisher chatter_pub_cmd;
<a name="l00055"></a>00055 };
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
</td></tr></table>

<hr size="1"><div style="align: right;">
<a href="http://ros.org/wiki/par_ui">par_ui</a><br />
Author(s): Wouter van Teijlingen</br />
<small>autogenerated on Mon Jun 13 2011 17:06:40</small>
</div>
</body>
</html>
